<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div th:include="login::nav">
</div>
<div th:if="${action}==update">
    <h2> 修改密码</h2>
    <hr>
    <div style="width: 33%;border: 1px solid red">
    <form  method="post" action="/tea/update">
        <table border="1">
        <tr>
            <td>账号:</td>
            <td><input type="text" name="phone" /></td>
        </tr>
        <tr>
            <td>原密码:</td>
            <td><input type="text" name="pwd" /></td>
        </tr>
        <tr>
            <td>新密码:</td>
            <td><input type="text" name="pwd1" /></td>
        </tr>
        <tr>
            <td>二次密码:</td>
            <td><input type="text" name="pwd2" /></td>
        </tr>
        <tr>
            <td>提交</td>
        <td><input type="submit" /></td>
        </tr>
        </table>
    </form>
    </div>
    <div th:text="${pwd1}"></div>
</div>
<div th:if="${action}==findcou">
    <table border="1">
<tr>
    <th>班级编号</th>
    <th>班级名称</th>
    <th>课程编号</th>
    <th>课程名称</th>
    <th>操作</th>
</tr>
    <!--   private String clzno;//
   private String clzname;
   private int  cno;
   private String cname;-->
<tr th:each="x:${task}">
    <td th:text="${x.clz.clzno}"></td>
    <td th:text="${x.clz.clzname}"></td>
    <td th:text="${x.course.cno}"></td>
    <td th:text="${x.course.cname}"></td>
    <td><a th:href="'/tea/findBycouese?clzno='+${x.clz.clzno}+'&cno='+${x.course.cno}"><button>查询该班级的所有学生</button></a></td>
</tr>
</table>
</div>
<div th:if="${action}==findBycouese">
<table border="1" style=" margin-left: auto;margin-right: auto;">
    <tr>
        <th>id</th>
        <th>班级编号</th>
        <th>学号</th>
        <th>学生名字</th>
        <th>课程编号</th>
        <th>课程名称</th>
        <th>分数</th>
        <th>操作</th>
    </tr>
    <tr th:each="x:${tark}">
        <form action="/tea/add" method="post">
            <td><input type="text" name="id" th:value="${x.id}"></td>
            <td><input type="text" name="clz.clzno" th:value="${x.clzno}"></td>
            <td><input type="text" name="sno" th:value="${x.sno}"></td>
            <td th:text="${x.sname}"></td>
            <td><input type="text" name="course.cno" th:value="${x.cno}"></td>
            <td th:text="${x.cname}"></td>
            <td><input type="text" name="score" th:value="${x.score}"></td>
            <td><input type="submit" value="保存"></td>
        </form>
    </tr>

</table>

</div>
</body>
</html>